package com.ltz.model;

import java.util.Map;

public class Pager {
	private Integer pageSize = 7;
	private Integer currPN = 1;
	private Integer totalPN;
	private Integer totalNo;
	public Map data;

//	public Object getData() {
//		return data;
//	}
//
//	public void setData(Object data) {
//		this.data = data;
//	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getCurrPN() {
		return currPN;
	}

	public void setCurrPN(Integer currPN) {
		this.currPN = currPN;
	}

	public Integer getTotalPN() {
		if (null != totalNo) {
			return totalNo % pageSize > 0 ? totalNo / pageSize + 1 : totalNo
					/ pageSize;
		}
		return totalPN;
	}

	public void setTotalPN(Integer totalPN) {
		this.totalPN = totalPN;
	}

	public Integer getTotalNo() {
		return totalNo;
	}

	public void setTotalNo(Integer totalNo) {
		this.totalNo = totalNo;
	}

}
